//
//  FoodStoreListRespModel.swift
//  FoodStore
//
//  Created by youwei on 2025/6/22.
//

struct FoodStoreListRespModel: Codable {
    let total: Int
    let rows: [FoodStoreItemRespModel]
}

struct FoodStoreDetailRespModel: Codable {
    let data: FoodStoreItemRespModel
}

struct FoodStoreItemRespModel: Codable, Identifiable {
    let id: Int
    let logoFile: PicFileRespModel?
    let name: String
    let settled: Int
    
    var score: Float?
    var scoreNum: Int?
    
    let distance: String?
    
    var goods: [FoodItemRespModel]?
    let tags: String
    let businessTime: String
    let averagePrice: String
    
    /// 印尼语地址
    let indonesiaAddress: String
    let chineseAddress: String
    
    let environmentPicFile: [PicFileRespModel]?
    let chineseName: String
    let settledTime: String
    let contacts: String
    let snapshot: String
    let addressGoogle: String
    let phone: String
}

struct FoodItemRespModel: Codable, Identifiable {
    let id: Int
    let name: String
    let picFile: PicFileRespModel
    let price: String
    let tags: String
}
